import request from '@/utils/request'

export function addGroup(data) {
    return request({
        url: '/api/user.site_group/add',
        method: 'post',
        data
    })
}
export function list(params) {
    return request({
        url: '/api/user.site/list',
        method: 'get',
        params
    })
}
export function add(data) {
    return request({
        url: '/api/user.site/add',
        method: 'post',
        data
    })
}
export function edit(data, id) {
    return request({
        url: '/api/user.site/edit',
        method: 'post',
        data,
        params: {
            siteId: id
        }
    })
}

export function editGroup(data) {
    return request({
        url: '/api/user.site_group/edit',
        method: 'post',
        data
    })
}

export function group(params) {
    return request({
        url: '/api/user.site_group/all',
        method: 'get',
        params
    })
}

export function delSite(params) {
    return request({
        url: '/api/user.site/deleted',
        method: 'get',
        params
    })
}
export function delSiteGroup(params) {
    return request({
        url: '/api/user.site_group/deleted',
        method: 'get',
        params
    })
}
export function editPort(data, id) {
    return request({
        url: '/api/user.site/editPort',
        method: 'post',
        data,
        params: {
            siteId: id
        }
    })
}
export function pointsList(params) {
    return request({
        url: '/api/user.points/list',
        method: 'get',
        params
    })
}
export function day_list(data) {
    return request({
        url: '/api/hot/day_list',
        method: 'get',
        data
    })
}
export function addLexiconTask(data) {
    return request({
        url: '/api/user.task/add',
        method: 'post',
        data
    })
}
// 批量删除
export function deleteMore(data) {
    return request({
        url: '/api/user.site/deleteMore',
        method: 'post',
        data
    })
}
